.Net Framework > v2.0.50727 > System > Array > BinarySearch<T> BinarySearch<T>(T[],Int32,Int32,T)
BinarySearch<T>(T[],Int32,Int32,T,IComparer<T>)
BinarySearch<T>(T[],T)
BinarySearch<T>(T[],T,IComparer<T>)


BinarySearch<T>(T[],Int32,Int32,T)

Category
Method
Description
Searches a range of elements in a one-dimensional sorted System.Array for a value, using the System.IComparable`1 generic interface implemented by each element of the System.Array and by the specified value.
Type
Int32
Character
public, static
Parameters
NameTypeDescription
arrayT[]
indexInt32
lengthInt32
valueT
Attributes
NameValue/Assignment
ReliabilityContractAttributeSystem.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail
Tags
01892ABD01, 02E3ABA98D, 0376596F91

BinarySearch<T>(T[],Int32,Int32,T,IComparer<T>)

Category
Method
Description
Searches a range of elements in a one-dimensional sorted System.Array for a value, using the specified System.Collections.Generic.IComparer`1 generic interface.
Type
Int32
Character
public, static
Parameters
NameTypeDescription
arrayT[]
indexInt32
lengthInt32
valueT
comparerSystem.Collections.Generic.IComparer<T>
Attributes
NameValue/Assignment
ReliabilityContractAttributeSystem.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail
Tags
01892ABD01, 02E3ABA98D, 0376596F91

BinarySearch<T>(T[],T)

Category
Method
Description
Searches an entire one-dimensional sorted System.Array for a specific element, using the System.IComparable`1 generic interface implemented by each element of the System.Array and by the specified object.
Type
Int32
Character
public, static
Parameters
NameTypeDescription
arrayT[]
valueT
Attributes
NameValue/Assignment
ReliabilityContractAttributeSystem.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail
Tags
01892ABD01, 02E3ABA98D, 0376596F91

BinarySearch<T>(T[],T,IComparer<T>)

Category
Method
Description
Searches an entire one-dimensional sorted System.Array for a value using the specified System.Collections.Generic.IComparer`1 generic interface.
Type
Int32
Character
public, static
Parameters
NameTypeDescription
arrayT[]
valueT
comparerSystem.Collections.Generic.IComparer<T>
Attributes
NameValue/Assignment
ReliabilityContractAttributeSystem.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database